package com.yanyu.space.sys.bean.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yanyu.space.common.core.bean.db.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * 部门
 *
 * @author yanyu
 */
@Data
@ToString
@TableName("sys_dept")
public class Dept extends BaseEntity {

    @ApiModelProperty("父类id")
    @TableField(value = "parent_id")
    private Long parentId;

    @ApiModelProperty("部门信息")
    @TableField(value = "dept_name")
    private String deptName;

    @ApiModelProperty("启用标识")
    @TableField(value = "enabled")
    private Integer enabled;

    @ApiModelProperty("部门负责人")
    @TableField(value = "leader")
    private String leader;

    @ApiModelProperty("联系电话")
    @TableField(value = "phone")
    private Integer phone;

    @ApiModelProperty("排序")
    @TableField(value = "sort")
    private Integer sort;

    @ApiModelProperty("备注")
    @TableField(value = "remark")
    private String remark;
}
